# coding=utf-8
import mod.server.extraServerApi

serverApi = mod.server.extraServerApi
levelId = serverApi.GetLevelId()
compFactory = serverApi.GetEngineCompFactory()


class ServerSystem(serverApi.GetServerSystemCls()):

    def __init__(self, namespace, systemName):
        super(ServerSystem, self).__init__(namespace, systemName)
        self.addEventListen(serverApi.GetEngineNamespace(), serverApi.GetEngineSystemName())

    def addEventListen(self, namespace, systemName):
        """
        :type namespace: str
        :type systemName: str
        """

    def Destroy(self):
        self.UnListenAllEvents()
